fontchooser: Set a fixed size on the preview cell
authorBenjamin Otte <otte@redhat.com>
Thu, 22 Sep 2011 16:00:37 +0000 (18:00 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Sep 2011 19:44:05 +0000 (21:44 +0200)
commit1892c64accc3a5b8ef91b139597b076ea52515fc
tree2c117a2ea63c4eea62b9979835f3755faf64a46c
parent59fbfd6205eae8983ce7bd5806412791267e32c4
fontchooser: Set a fixed size on the preview cell

This way, all rows have the same height. It has 3 advantages:
1) No actual computation is necessary to compute the size of the cell.
   This speeds up the list tremendously (filling out the list goes from
   25s to 3s).
2) Buggy fonts don't mess up the list anymore with their weird sizes.
   Instead, they are clipped / empty space is added.
3) Buggy fonts look more buggy. So their use is hopefully discouraged.
gtk/gtkfontchooserwidget.c